home *** CD-ROM | disk | FTP | other *** search
- /* =====================
- * AEA1AEIdleFunction.cc
- * =====================
- */
-
- #include <AppleEvents.h>
-
- #include "AEADebugging.h"
-
- #include "AEA1AEIdleFunction.hh"
-
- AEA1AEIdleFunction::AEA1AEIdleFunction(AEAApplication &inApp)
- : mAEIdleUPP(NewAEIdleProc(AEIdleFunction)), mApp(inApp)
- {
- //mAEIdleUPP = NewAEIdleProc(AEIdleFunction);
- }
-
- AEA1AEIdleFunction::~AEA1AEIdleFunction()
- {
- }
-
- /*
- * AESend() idle function
- *
- * Return whether or not you're tired of waiting.
- */
-
- pascal Boolean
- AEA1AEIdleFunction::AEIdleFunction(EventRecord *inEvent, long *outSleepTime, RgnHandle *outMouseRgn)
- {
- // This hack allows us to tap PowerPlant's event loop.
- // Later it will be revised for Standard App.
- #ifdef _H_LApplication
- mApp.DispatchEvent(*inEvent);
- #endif
- return false;
- }
-
-